<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div id="login-bar-container" class="user-bar-container">
<div id="fb-root"></div>
<!-- FACEBOOK LOGIN SCRIPT --> <script
	src="http://connect.facebook.net/en_US/all.js"></script> <script>
	FB.init({ 
	   appId:'192876737424509', cookie:true, 
	   status:true, xfbml:true 
	});

	FB.Event.subscribe('auth.login', function(response) {
	  	$("#facebook-connect-form > #access_token").val(response.session.access_token);
	  	$("#facebook-connect-form > #secret").val(response.session.secret);
	  	$("#facebook-connect-form > #callback").val(window.location.href);
	  	$("#facebook-connect-form").submit();
	});
</script> <!-- FACEBOOK LOGIN BUTTON --> <fb:login-button
	perms="email,publish_stream,offline_access" class="login-button">
	<fmt:message key="facebook.login" />
</fb:login-button>
<form id="facebook-connect-form" method="POST"
	action="/connections/facebook/connect"><input type="hidden"
	name="access_token" id="access_token" /> <input type="hidden"
	name="secret" id="secret" /><input type="hidden" name="callback"
	id="callback" /></form>
</div>